package com.letoken.platform.pub.enums;

import java.util.HashMap;
import java.util.Map;

public enum OtcStatusEnum {

    COMPLETED(1, "已完成"),
    CANCELLED(2, "已取消"),
    ;

    private final Integer status;
    private final String desc;

    OtcStatusEnum(Integer status, String desc) {
        this.status = status;
        this.desc = desc;
    }


    public final static Map<Integer, String> statusDescMap;

    static {
        statusDescMap = new HashMap<>();
        for (OtcStatusEnum value : OtcStatusEnum.values()) {
            statusDescMap.put(value.status, value.desc);
        }
    }

}
